package com.usefullc.crawler.task;

import lombok.Data;

/**
 * @author: Sampson
 * @date: 2022-03-27 16:34
 */
@Data
public class TaskMessage<T> {

  /**请求方式（详见 RequestTypeEnum）*/
  private String reqType;

  private Long taskId;  //== activeProcessId

  /* 速度 （s=1 单线程,m=3,h=5)*/
  private String speed = "3000-5000";

  /* 单机并发数 */
  private Integer threadCount = 1;

  /* 执行前休眠间隔*/
  private Long sleepTime = 0L;

  /* 开始消费时间*/
  private Long consumeStartTime;

  private T data;




}
